<?php
namespace PsiFramework\Applications\DefaultApp\Classes\DAO;

import("Classes.DAO.AbstractDAO");
import("Applications.DefaultApp.Classes.Model.Trace");

use \PsiFramework\Classes\DAO\AbstractDAO;
use \PsiFramework\Classes\Util\Parameters\ObjectParameters;
use \PsiFramework\Applications\DefaultApp\Classes\Model\Trace;

/**
 * PsiFramework
 * Php Simple Framework
 *
 * @author Rémi San
 * @version beta
 */

/**
 * The TraceDAO is the Data Access Object for the class Trace
 *
 * @package DAO
 */
class TraceDAO extends AbstractDAO
{

    protected static $_singleton = null;

    /**
     * Function to be called instead of the constructor.
     *
     * @param ObjectParameters $objectParameters The object parameters
     *
     * @return TraceDAO instance
     */
    public static function getInstance(ObjectParameters $objectParameters)
    {

        if (self::$_singleton==null) {
            self::$_singleton = new TraceDAO($objectParameters);
        }

        return self::$_singleton;
    }

}
